#include "PauseScene.h"
#include "StateManager.h"
#include "ShareComponents.h"
#include "FWKeyboard.h"
#include "MainGame.h"
PauseScene::PauseScene(FWGame* scene) : FWGame(scene)
{
	id_scene = PAUSE;
}
PauseScene::~PauseScene()
{
}
void PauseScene::load()
{

}
void PauseScene::update(float time)
{
	if (gl_keyboard->isKeyPressed(DIK_P))
	{
		id_next_scene=MAINGAME;
		return;
	}
	if(gl_keyboard->isKeyPressed(DIK_F5))
	{
		id_next_scene = MENU;
		return;
	}
}
void PauseScene::render()
{
	StateManager::getInstance()->preMainGame->render();
}
void PauseScene::shutdown()
{}